<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>AddEmotionalSkill</title>
	<!-- Date: 2008-10-12 -->
</head>
<body>
    <a href="/">Home</a>
 	<br/>
        {{ msg|safe }}
        <img src={{photo}} />
		<form action="" method="POST">{% csrf_token %}
		    <table cellSpacing=0 cellPadding=5 width="50%" border=0 style="WIDTH: 50%" align=center>
                {{ form.as_table }}
            </table>
            <input type="submit" value="Go"/>

        </form>
        {% if data %}
        <strong>Teacher</strong>: {{ teacher }} <br />
	    {% for f in data %}
        <form action="" method="POST">{% csrf_token %}
			<hr />
		    {{ form.Year }}
		    {{ form.RegistrationNo }} {{ name }}
                <table>
                        {{ f.as_table }}
        	    </table>
        	<input type="hidden" name="Teacher" value="{{ teacher }}"/>
		    <input type="submit" value="Save" />
	    </form>
	    {% endfor %}
		{% endif %}
</body>
</html>
